package com.boomsecret.pattern.factory.abstractMethod;

import com.boomsecret.pattern.factory.abstractFactory.PizzaIngredientFactory;

/**
 * Created by wangjinliang on 2018/1/31.
 */
public abstract class PizzaStore {
    public void orderPizza(PizzaIngredientFactory factory) {
        Pizza pizza = createPizza(factory);
        pizza.prepare();
    }

    protected abstract Pizza createPizza(PizzaIngredientFactory factory);
}
